-
Notifications
You must be signed in to change notification settings - Fork 912
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Deprecations and spec updates post-0.12 #5490
Deprecations and spec updates post-0.12 #5490
Conversation
f082259
to
f43bc2e
Compare
a86468d
to
cd84f44
Compare
cd84f44
to
820219b
Compare
Rebased, fixed one place in tests where I missed "WIRE_FUNDING_LOCKED"->"WIRE_CHANNEL_READY". |
820219b
to
16bd160
Compare
This FIXME caught my eye, as it's wrong: TLVs are canonical, so they cannot differ in bits and be equal. The equality function needs to be written correctly, however, otherwise it will crash! Signed-off-by: Rusty Russell <[email protected]>
In particular, we didn't check the remote_addr in the init msg. Signed-off-by: Rusty Russell <[email protected]>
…r_internal. Signed-off-by: Rusty Russell <[email protected]>
Somehow we missed this deprecation, found by grep. Changelog-Removed: JSON API: Removed double wrapping of `rpc_command` payload in `rpc_command` JSON field (deprecated v0.8.2) Signed-off-by: Rusty Russell <[email protected]>
Changelog-Removed: JSONRPC: RPC framework now requires the `"jsonrpc"` property inside the request (deprecated in v0.10.2) Signed-off-by: Rusty Russell <[email protected]>
Changelog-Removed: Old order of the `status` parameter in the `listforwards` rpc command (deprecated in v0.10.2) Signed-off-by: Rusty Russell <[email protected]>
We can do this now the function is cleaned up. Always better to do the work inside param() since then `check` gets the benefit. Signed-off-by: Rusty Russell <[email protected]>
Changelog-Removed: JSON-RPC: plugins must supply `usage` parameter (deprecated v0.7) Signed-off-by: Rusty Russell <[email protected]>
Changelog-Removed: Plugins: plugin init `use_proxy_always` (deprecated v0.10.2) Signed-off-by: Rusty Russell <[email protected]>
… set it. It was deprecated in v0.10.1, but only one channel on the network doesn't set it now anyway, and we'll be ignoring that soon. Signed-off-by: Rusty Russell <[email protected]>
Changelog-EXPERIMENTAL: remove "vendor" (use "issuer") and "timestamp" (use "created_at") fields (deprecated v0.10.2).
We changed the field name in v0.11.0, so this breaks compat with v0.10.2. Signed-off-by: Rusty Russell <[email protected]>
…indescriptors`. Changelog-Removed: `hsmtool`: hsm_secret (ignored) on cmdline for dumponchaindescriptors (deprecated in v0.9.3) Signed-off-by: Rusty Russell <[email protected]>
… time. This would be more effective if we didn't *merge* in the specs repo, but still. Usage: ./devtools/bolt-catchup.sh It goes through one commit at a time, up to current HEAD, and stops when there are changes, or quotes change. Signed-off-by: Rusty Russell <[email protected]>
`flags` in `channel_disabled` gets renamed. We don't use it anyway. Signed-off-by: Rusty Russell <[email protected]>
This contains the zeroconf stuff, with funding_locked renamed to channel_ready. I change that everywhere, and try to fix up the comments. Also the `alias` field is called `short_channel_id`. Signed-off-by: Rusty Russell <[email protected]> Changelog-Changed: Protocol: `funding_locked` is now called `channel_ready` as per latest BOLTs.
This alters the billboard, but that's a human-readable thing so not noted in CHANGELOG. Signed-off-by: Rusty Russell <[email protected]> Changelog-Changed: JSON-RPC: `listpeers` `status` now refers to "channel ready" rather than "funding locked" (BOLT language change for zeroconf channels) Changelog-Added: JSON-RPC: `channel_opened` notification `channel_ready` flag. Changelog-Deprecated: JSON-RPC: `channel_opened` notification `funding_locked` flag (use `channel_ready`: BOLTs namechange).
I disagree with this change, so I've commented and added a FIXME. Signed-off-by: Rusty Russell <[email protected]>
This is a slightly looser behavior, so no change needed. Signed-off-by: Rusty Russell <[email protected]>
This includes the recommendation that we use 10 minute grace period, so add quotes to where we use that. Signed-off-by: Rusty Russell <[email protected]>
16bd160
to
380ee93
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ACK 380ee93
} | ||
jsonrpc = json_get_member(buffer, replacetok, "jsonrpc"); | ||
if (!jsonrpc || jsonrpc->type != JSMN_STRING || !json_tok_streq(buffer, jsonrpc, "2.0")) { | ||
bad = "jsonrpc: \"2.0\" must be specified in the request"; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think this broke the BTCPay server integration… cc @NicolasDorier
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The broken part is the RPC library used inside it
No description provided.